
import React from 'react';
import ICapability from 'components/capability/interfaces/ICapability';

/** 预览 */
export const preview: ICapability<undefined> = {
    id: 'preview',
    title: '预览',
    useExpand: () => {
        const onClick = React.useCallback(async () => {
            window.open(`/?${new Date().getTime()}#/preview`, '/#/preview');
        }, [])

        return {
            onClick,
        }
    }
}
